<template>
  <div class="twobox">
    <div class="index_part_title">
      <span> <i class="el-icon-s-custom"></i>流水统计</span>
      <i class="el-icon-refresh refresh" @click.stop="refresh"></i>
    </div>
    <div class="index_two_body">
      <div class="index_two_item">
        <div>
          <div>
            <p>{{ data["总工资发放"] }}</p>
            <p>总工资发放</p>
          </div>
          <img src="././../../../assets/img/index/组 86.png" alt="" />
        </div>
        <p><span>上月工资发放</span>{{ data["上月工资发放"] }}</p>
      </div>
      <div class="index_two_item">
        <div>
          <div>
            <p>{{ data["总奖励发放"] }}</p>
            <p>总奖励发放</p>
          </div>
          <img src="././../../../assets/img/index/组 19.png" alt="" />
        </div>
        <p><span>上月奖励发放</span>{{ data["上月奖励发放"] }}</p>
      </div>
      <div class="index_two_item">
        <div>
          <div>
            <p>{{ data["总股东分润"] }}</p>
            <p>总股东分润</p>
          </div>
          <img src="././../../../assets/img/index/组 20.png" alt="" />
        </div>
        <p><span>上月股东分润</span>{{ data["上月股东分润"] }}</p>
      </div>
      <div class="index_two_item">
        <div>
          <div>
            <p>{{ data["今年分红沉淀"] }}</p>
            <p>今年分红沉淀</p>
          </div>
          <img src="././../../../assets/img/index/路径 21.png" alt="" />
        </div>
        <p><span>去年分红总额</span>{{ data["去年分红总额"] }}</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: {
    data: {
      type: Object,
      default: () => ({}),
    },
  },
  components: {},
  methods: {
    refresh() {
      this.$bus.$emit("refresh", "funds");
      // this.$bus.$emit("refresh", "made");
    },
  },
};
</script>
<style lang="less" scoped>
.twobox {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px 5px 20px #e4e4e4;
  border-radius: 5px;
  overflow: auto;
}

.index_two_body {
  width: 100%;
  padding: 15px;
  background-color: #ffffff;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  .index_two_item:not(:last-child) {
    margin-right: 15px;
  }
  .index_two_item {
    flex: 1;
    height: 140px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    background-color: #fbfbfb;
    padding: 0 15px;
    > div {
      width: 100%;
      flex: 1;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #e8eaec;
      > img {
        height: 35px;
      }
      > div {
        display: flex;
        flex-flow: column;
        justify-content: flex-start;
        align-items: flex-start;
        > p:nth-of-type(1) {
          font-size: 30px;
          font-weight: bold;
          color: #212121;
          line-height: 50px;
        }
        > p:nth-of-type(2) {
          font-size: 15px;
          color: #212121;
        }
      }
    }
    > p {
      width: 100%;
      height: 40px;

      font-size: 16px;
      color: #212121;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      > span {
        font-size: 15px;
        margin-right: auto;
      }
    }
  }
}
</style>
